<?php


namespace app\web\controller;


use app\web\model\Admin;
use think\Controller;
use think\facade\Request;

class Login extends Controller
{
    public function login()
    {
        $data = Request::param();
        $admin = Admin::where($data)->find();
        if ($admin) {
            return true;
        } else {
            return false;
        }
    }
}